//
//  CLReadHomeViewCell.m
//  CLBrowser
//
//  Created by 梁慧聪 on 2022/8/12.
//

#import "CLReadHomeViewCell.h"

@implementation CLReadHomeViewCell
+ (CLReadHomeViewCell *)cell:(UITableView *)tableView {
    
    CLReadHomeViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"CLReadHomeViewCell"];
    
    if (cell == nil) {
        cell = [[CLReadHomeViewCell alloc]initWithStyle:(UITableViewCellStyleDefault) reuseIdentifier:@"CLReadHomeViewCell"];
    }
    return cell;
}


- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        self.backgroundColor = UIColor.clearColor;
        [self addSubviews];
    }
    return self;
}


- (void)addSubviews {
    
    // 书籍首页
    self.homeView = [[CLReadHomeView alloc]init];
    
    [self.contentView addSubview:self.homeView];
}

- (void)layoutSubviews {
    [super layoutSubviews];
    
    self.homeView.frame = self.bounds;
}


@end
